<ui:fragment xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui">
    <h:form>
        <p:panel styleClass="item span6">
            <div class="itemLeft">
                <p:graphicImage id="playerImg" value="/images/miniature#{b.bitmapURL}" />
            </div>
            <div class="itemRight">
                <div class="itemInfo">
                    <h4>#{b.title}</h4>
                    <h:outputText value="#{b.summary}" />
                </div>
                <div class="itemStock">Stock disponible : #{b.stock}</div>
                <div class="itemPrice">Prix TTC : #{b.price} €</div>
                <div class="itemAction">
                    <p:commandButton styleClass="actionButtonPanier" value="Ajouter au panier" 
                                     action="#{mbCart.addItemToCart()}"
                                     icon="ui-icon-cart" ajax="false">
                        <f:param name="isbn" value="#{b.isbn}"/>
                    </p:commandButton>
                    <p:commandButton styleClass="actionButtonDetail" value="Détails" actionListener="#{bookManagedBean.getBookFromISBN}" icon="ui-icon-note">
                        <f:attribute name="ISBN" value="#{b.isbn}" />
                    </p:commandButton>
                </div>
            </div>
        </p:panel>
    </h:form>
</ui:fragment>
